package com.jzo2o.customer.controller.agency;

import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IAgencyCertificationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author wanfeng
 * @version 1.0
 * @since 2025-09-16 19:45
 */

@RestController("agencyServeAgencyCertificationAuditController")
@RequestMapping("/agency/agency-certification-audit")
@Api(tags = "机构端 - 提交认证相关接口")
public class ServeAgencyCertificationAuditController {
    @Resource
    private IAgencyCertificationService agencyCertificationService;

    /**
     * 提交认证相关接口
     * @param agencyCertificationAuditAddReqDTO
     */
    @PostMapping
    @ApiOperation("机构提交认证接口")
    public void AgencyCertificationAudit(@RequestBody AgencyCertificationAuditAddReqDTO agencyCertificationAuditAddReqDTO){
        agencyCertificationService.agencyCertificationAudit(agencyCertificationAuditAddReqDTO);
    }

    /**
     * 查询最新的驳回原因接口
     * @return
     */
    @GetMapping("/rejectReason")
    @ApiOperation("查询最新的驳回原因接口")
    public RejectReasonResDTO rejectReason(){
        return agencyCertificationService.rejectReason();
    }
}
